<?php
/**
 * Created by PhpStorm.
 * User: Lenovo
 * Date: 2018/11/29
 * Time: 14:38
 */

namespace app\index\model;


use think\Model;

class Submessage extends Model
{
    protected $autoWriteTimestamp='datetime';
    protected $updateTime=false;
    public static function updallstatus($type){
        $re=self::where('type',$type)
            ->where('status',0)
            ->update([
                'status'=>1
            ]);
        return $re;
    }
}